import request from '@/utils/request'

// 查询留言管理列表
export function listBlessComment(query) {
  return request({
    url: '/marry/blessComment/list',
    method: 'get',
    params: query
  })
}

// 查询留言管理列表
export function listAllBlessComment(query) {
  return request({
    url: '/marry/blessComment/listAll',
    method: 'get',
    params: query
  })
}

// 查询留言管理详细
export function getBlessComment(id) {
  return request({
    url: '/marry/blessComment/' + id,
    method: 'get'
  })
}

// 新增留言管理
export function addBlessComment(data) {
  return request({
    url: '/marry/blessComment',
    method: 'post',
    data: data
  })
}

// 修改留言管理
export function updateBlessComment(data) {
  return request({
    url: '/marry/blessComment',
    method: 'put',
    data: data
  })
}

// 删除留言管理
export function delBlessComment(id) {
  return request({
    url: '/marry/blessComment/' + id,
    method: 'delete'
  })
}

// 导出留言管理
export function exportBlessComment(query) {
  return request({
    url: '/marry/blessBlessComment/export',
    method: 'get',
    params: query
  })
}
